﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ForecastPost_fc3D.ascx.cs" Inherits="APP_Controls_ForecastPost_fc3D" %>
<div class="betting_predict">
    <div class="betting_predict_t">
        <h2>预测选号</h2>
        <span><a href="../ForecastPost_List.aspx">更多&gt;&gt;</a></span>
    </div>
    <ul class="betting_predict_ul">
        <%if (forecast3d != null)
            {
                for (int i = 0; i < forecast3d.Count; i++)
                {%>

        <li>·<a href="ForecastPostInfo.aspx?id=<%=forecast3d[i].id %>"><%=forecast3d[i].Title.Length > 16 ? forecast3d[i].Title.Substring(0, 16) : forecast3d[i].Title %> </a></li>
        <%}
            } %>
    </ul>
</div>
<!--PaiHang-->
<div class="d_r_t">
    <h2>中彩排行</h2>
    <p>本站累计中奖<span><%=jiangjin2 %></span> 亿元</p>
</div>
<ul class="d_paihang">
    <%if (userAccount != null && userAccount.Count > 0)
        {
            for (int i = 0; i < (userAccount.Count > 12 ? 12 : userAccount.Count); i++)
            {
    %>
    <li>
        <b <%if (i < 3)
            { %>class="yellowbg"
            <%}
            else
            { %>
            class="p_n" <%} %>><%=i+1 %></b>
        <p class="p_n"><%=SelectName(userAccount[i].user_id)%></p>
        <p class="p_date">
         <%--   <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) % 100000000 / 10000,2)%> 万元--%>
               <%if (Convert.ToDecimal(userAccount[i].winTotal) > 100000000)//亿
                            {%>
                        <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) / 100000000 ,2)%> 亿元
                                       <%}
                                           else
                                           {%>
                        <%if (Convert.ToDecimal(userAccount[i].winTotal) > 10000)
                            {%>
                        <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) /10000 ,2)%> 万元
                                               <%}
                                                   else
                                                   {%>
                        <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal),2)%> 元
                                               <%}
                                                   }
                                               %>
        </p>
    </li>
    <% }
        }%>
</ul>
